//package com.demo.statemachine.d04.InMemory;
//
//import com.demo.statemachine.d04.OrderEvents;
//import com.demo.statemachine.d04.OrderStates;
//import org.springframework.beans.factory.annotation.Autowired;
//import org.springframework.context.annotation.Bean;
//import org.springframework.context.annotation.Configuration;
//import org.springframework.statemachine.persist.DefaultStateMachinePersister;
//import org.springframework.statemachine.persist.StateMachinePersister;
//
///**
// * 状态持久化配置
// */
//@Configuration
//public class PersistConfig {
//    @Autowired
//    private InMemoryStateMachinePersist inMemoryStateMachinePersist;
//
//    @Bean(name="orderMemoryPersister")
//    public StateMachinePersister<OrderStates, OrderEvents, String> getPersister() {
//        return new DefaultStateMachinePersister<>(inMemoryStateMachinePersist);
//    }
//
//}
